﻿using System;

namespace XCI.Windows
{
    /// <summary>
    /// 部件属性
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
    public class WidgetCaptionAttribute : Attribute
    {
        /// <summary>
        /// 初始化 WidgetCaptionAttribute 类的新实例。
        /// </summary>
        public WidgetCaptionAttribute()
        {
        }

        /// <summary>
        /// 初始化 WidgetCaptionAttribute 类的新实例。
        /// </summary>
        /// <param name="name">名称</param>
        public WidgetCaptionAttribute(string name)
        {
            this.Name = name;
        }

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 简拼
        /// </summary>
        public string Spell { get; set; }

        /// <summary>
        /// 代码
        /// </summary>
        public string Code { get; internal set; }
    }
}
